package com.liy.teaching.core.entity;

import org.springframework.security.core.GrantedAuthority;

public class UserGrantedAuthority implements GrantedAuthority {

    private String grantedAuthorityStr;  // 权限标识符

    public UserGrantedAuthority() {}

    public UserGrantedAuthority(String grantedAuthorityStr) {
        this.grantedAuthorityStr = grantedAuthorityStr;
    }

    @Override
    public String getAuthority() {
        return grantedAuthorityStr;
    }

    public String getGrantedAuthorityStr() {
        return grantedAuthorityStr;
    }

    public void setGrantedAuthorityStr(String grantedAuthorityStr) {
        this.grantedAuthorityStr = grantedAuthorityStr;
    }
}
